package com.zhiyizhen.handheld.component.workspace.bean;

import android.text.TextUtils;

import com.zhiyizhen.handheld.common.base.BaseBean;

public class EmpInfo extends BaseBean {
    // {"code":"200","msg":"操作成功","timestamp":1757253361535,"data":{"empId":9,"empNo":"0005","empName":"王医生","gender":"1","avatarUrl":"https://file.zhiyizhen.cn/static/default_avatar.png","title":"省名儿科医生","deptId":3,"deptName":"内科","notes":"省级名中医擅长治疗儿科和情绪方面的治疗"},"ok":true}
    private Integer empId;
    private String empNo;
    private String empName;
    private String gender;
    private String avatarUrl;
    private String title;
    private Integer deptId;
    private String deptName;
    private String notes;

    public Integer getEmpId() {
        return empId;
    }

    public String getEmpNo() {
        return empNo;
    }

    public String getEmpName() {
        if (TextUtils.isEmpty(empName)) {
            return "";
        }
        return empName;
    }

    public String getGender() {
        return gender;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public String getTitle() {
        if (TextUtils.isEmpty(title)) {
            return "";
        }
        return title;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public String getDeptName() {
        if (TextUtils.isEmpty(deptName)) {
            return "";
        }
        return deptName;
    }

    public String getNotes() {
        return notes;
    }

    public String getGenderString() {
        if ("1".equals(getGender())) {
            return "男";
        } else if ("2".equals(getGender())) {
            return "女";
        }
        return "";
    }
}
